Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
joi-of-cql
Advanced tools
Create cql type definitions from joi schema validations
var joc = require('joi-of-cql');
apollo.define('car', {
schema: joc.object({
car_id: joc.cql.uuid(),
manufacturer_id: joc.cql.uuid(),
drivers: joc.set(joc.cql.uuid())
}).partitionKey('car_id')
.clusteringKey('manufacturer_id')
CQL Data Type | Validation Type |
---|---|
ascii | cql.ascii() |
bigint | cql.bigint() |
blob | cql.blob() |
boolean | cql.boolean() |
counter | cql.counter() |
decimal | cql.decimal() |
double | cql.double() |
float | cql.float() |
inet | cql.inet() |
text | cql.text() |
timestamp | cql.timestamp() |
timeuuid | cql.timeuuid() |
uuid | cql.uuid() |
varchar | cql.varchar() |
varint | cql.varint() |
map | cql.map(cql.text(), cql.text()) , |
set | cql.set(cql.text()) |
.partitionKey(key)
- key can be an array or a single string
identifying one or more of the properties in the schema as a partition
key..partitionKey()
- retrieve the previously defined partition key..clusteringKey(key)
- key can be an array or a single string
identifying one or more of the properties in the schema as a
clustering key..clusteringKey()
- retrieve the previously defined clustering key..lookupKeys(...keys)
- either an array of lookup keys or lookup keys
passed as arguments that are collected into an array..lookupKeys()
- retrieve the previously defined lookup keys..aliases()
- retrieve the previously defined rename
d properties.FAQs
Create cql type definitions from joi schema validations
We found that joi-of-cql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.